package test.com.flexoop.utilities.dateutils {

	import com.flexoop.utilities.dateutils.DateUtils;
	
	import org.flexunit.Assert;
	

	public class TimeFormatTest {

		public function TimeFormatTest() {
		}
		
		[Test]
		public function testShortTime():void {
			Assert.assertEquals( 'short time mask format test', '8:14 AM', DateUtils.timeFormat( new Date( 2009, 0, 1, 8, 14 ), DateUtils.SHORT_TIME_MASK ) );
		}
		
		[Test]
		public function testMediumTime():void {
			Assert.assertEquals( 'medium time mask format test', '9:47:00 PM', DateUtils.timeFormat( new Date( 2009, 1, 1, 21, 47 ), DateUtils.MEDIUM_TIME_MASK ) );
		}
		
		[Test]
		public function testCustomTime():void {
			Assert.assertEquals( 'custom time mask format test', '17:17:56 PM', DateUtils.timeFormat( new Date( 2009, 4, 24, 17, 17, 56 ), 'HH:NN:SS A' ) );
		}

	}
}